#include "led.h"


void led_on(led_t* led)
{
    gpio_write_pin(led->led_ctrl, led->on_state);
}

void led_off(led_t* led)
{
    gpio_write_pin(led->led_ctrl, !led->on_state);
}

void led_toggle(led_t* led)
{
    gpio_toggle_pin(led->led_ctrl);
}
